#ifndef EMFDRAWABLE_H
#define EMFDRAWABLE_H

#include "./drawables/drawable.h"
#include "./selectable/selectable.h"
#include "./tagable/tagable.h"

#include<QPolygon>

class EmfDrawable:public Drawable, public Selectable
{
private:
    QVector<QPointF> _emf;
    enum {POINT_DELTA = 1};
    bool _containsPoint(QPointF point, QLineF line);
public:
    EmfDrawable();
    virtual void draw(CoodrsTransformer *coordsTransformer=0);
    QRectF getBoundingBox();
    void addCoordinates(QPointF point);
    virtual bool isSelected(QPointF selectedPoint);

    qreal getValueByTime(qreal time);
};

#endif // EMFDRAWABLE_H
